$(function () {
    // 1 注册账号
    $('#btnZC').on('click', function () {
        // alert(1111)
        let phone = $('#phone').val()
        let passWord = $('#password').val()
        let repassword = $('#repassword').val()
        // console.log(phone,password,repassword);
        $.ajax({
            url: 'http://124.223.14.236:8060/index/reg',
            method: 'post',
            data: {
                mobile: phone,
                password: passWord
            },
            success: function (res) {
                if (res.errno !== 0) {
                    return alert(res.errmsg)
                }
                alert('注册成功，请前往登录')
            }
        })
    })
})